home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
C for beginners.adf
/
source
/
stringtest.c
< prev
next >
Wrap
C/C++ Source or Header
|
1978-01-17
|
380b
|
17 lines
/* stringfunc.c test 17.2 */
#include "stringfunc.c"
/* Global arrays can be initialized! */
char string1[] = "Hello!";
char string2[7] = { 'H', 'e', 'l', 'l', 'o', '!', 0};
main()
{
printf("\nComparison of >%s< and >%s< is %d\n", string1, string2, strcmp(string1, string2));
printf("Now >%s< and >%s< Result in %d\n\n", string1, "Huhu!", strcmp(string1, "Huhu!"));
}